package com.aabte.feignhttp.demo.common;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * @author Daniel
 */
@Data
@Builder
@AllArgsConstructor
public class ResponseBean {
    private String innerCode;
    private String message;
    private Object data;

    public ResponseBean() {
        this.innerCode = "0";
        this.message = "success";
    }

    public static ResponseBean success() {
        return new ResponseBean();
    }

    public static ResponseBean success(Object data) {
        ResponseBean responseBean = new ResponseBean();
        responseBean.setData(data);
        return responseBean;
    }

}
